<template>
  <div class="header">
    <nav>
      <ul>
        <li><router-link to="/">首页</router-link></li>
        <li><router-link to="/todolist">待办事项列表</router-link></li>
        <li><router-link to="/cv">简介</router-link></li>
      </ul>
    </nav>
  </div>
</template>

<style scoped>
.header {
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0 15px;
}

nav li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

nav li a:hover {
  color: #42b983;
}

nav li a.router-link-exact-active {
  color: #42b983;
  font-weight: 600;
}
</style>